package com.sc.nft.controller.request;

import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;


@Data
public class CategoryProductPageRequest extends PageRequest {

    @ApiModelProperty(value = "分类Id")
    private Long id;

    @ApiModelProperty("分类商品条件排序 0:默认 1:最新 2:价格升序 3:价格降序")
    @Range(min = 0, max = 3, message = "分类商品排序范围为0-3")
    private Integer sort;

    @ApiModelProperty("商品类型")
    private String productName;

    @ApiModelProperty("全部分类下 非虚拟商品全部分类传false 虚拟商品分类全部传true")
    private Boolean isVirtual;

    @ApiModelProperty("是否是Saas")
    private Boolean isSaas = false;

    @ApiModelProperty("是否是小程序商品")
    private Boolean showMiniMall;
}
